package com.lc.user.express.httpserver;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/11.删除银行卡
 */
@HttpInlet(Net.GET_DELETE_BANK_CARD)
public class GetDeleteBankCard extends ZJDBAsyGet<Object> {
    public String userid,password;

    public GetDeleteBankCard(String userid,String password,AsyCallBack listener) {
        super(listener);
        this.userid = userid;
        this.password = password;
    }

    @Override
    protected Object parser(JSONObject object) {
        if (object.optInt("message") == 0) {
            TOAST = "删除失败";
            return "0";
        }else if(object.optInt("message") == 1){
            TOAST = "删除成功";
            return "1";
        }else if(object.optInt("message") == 2){
            TOAST = "支付密码错误";
            return "2";
        }
        return null;
    }
}
